\documentclass[a4paper,12pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\title{How to install and run}
\author{Simlarity Search 1}
\date{\today}

\begin{document}

\maketitle

\section{Introduction}

Despite the requirements listed in "requirements.pdf" everything is delivered by simsearch1 team. But please start with the "requirements.pdf" and the "notes.pdf". Make sure you are using the descriped OS and that JRE and JDK is installed in version 7.

Please start all the scripts mentioned below from a terminal, which will not be closed before terminating the application.

\section{How to install}

Having done all this, copy the folder "Deliverables" to a folder you have write and read access to (preferable your home folder). In this folder you can find a folder artifacts, that contains 4 script files. "setup" and "clean" are descriped here. "start" and "stop" are described in the next section. Open a terminal and navigate to the artifact folder.
To install glassfish and mysql and to deploy the application type: $bash\;setup$

If something went wrong terminate the glassfish and mysql processes and afterwards call $bash\;clean$. This can also be called when you want to remove all parts of our application from your PC. 

Make sure you always call $bash\;clean$ before calling $bash\;setup$ and that all glassfish and mysql processes are terminated, unless you call $bash\;setup$ the first time.

\section{How to Run}

After installing you can call $bash\;start$. This will start the database and the application server. The user interface can now be accessed in your browser (preferred: Firefox). The URL is \textbf{http://localhost:8080/SimilaritySearchWEB}. All usage instructions can be found in "usageDescription.pdf". At the end it is necessary to call $bash\;stop$. Make sure you do not forget this. It will shutdown the database and the application server.

\section{Questions and Problems}

If there are any questions or problems please contact \textbf{florian.sieck@tuhh.de}.

\end{document}

